#include<input_manager.h>


int main(int argc, char** argv)
{
	int ret;
	InputEvent tInputEvent;

 	InputStystemRegister();
	
	InputStystemInit();

	while(1)
	{	
		ret = GetInputEvent(&tInputEvent);
		if(ret)
		{
			printf("GetInputEvent err\n");
			return -1;
		}
		else
		{
			if(tInputEvent.iType == INPUT_TYPE_NET)
			{
				printf("Type      : %d\n", tInputEvent.iType);
				printf("str       : %s\n", tInputEvent.str);
			}
			else if(tInputEvent.iType == INPUT_TYPE_TOUCH)
			{
				printf("Type      : %d\n", tInputEvent.iType);
				printf("iX        : %d\n", tInputEvent.iX);
				printf("iY        : %d\n", tInputEvent.iY);
				printf("iPressure : %d\n", tInputEvent.iPressure);
			}
		}
		
	}
	
	return 0;
}


